package cm.iccsoft.android.telecomcost.entities;

import android.text.format.DateUtils;

public class Day extends Entity{
	private int _dayOfWeek;
	private int _weekOfMonth;
	private int _monthOfYear;

	public Day() {
	}
	
	public String getMonthName()
	{
		return new Month(_monthOfYear).toString();
	}
	
	public String getWeekName()
	{
		return "Week " + _weekOfMonth;
	}
	
	public Day(int dayOfWeek) {
		_dayOfWeek = dayOfWeek;
	}

	public int getDayOfWeek() {
		return _dayOfWeek;
	}

	public void setDayOfWeek(int _dayOfWeek) {
		this._dayOfWeek = _dayOfWeek;
	}

	public int getWeekOfMonth() {
		return _weekOfMonth;
	}

	public void setWeekOfMonth(int _weekOfMonth) {
		this._weekOfMonth = _weekOfMonth;
	}

	public int getMonthOfYear() {
		return _monthOfYear;
	}

	public void setMonthOfYear(int _monthOfYear) {
		this._monthOfYear = _monthOfYear;
	}
	
	@Override
	public void setName(String name) {		
	}

	@Override
	public String getName() {		
		return toString();
	}

	@Override
	public void setId(long _id) {		
	}

	@Override
	public long getId() {		
		return getDayOfWeek();
	}

	@Override
	public String toString() {
		return DateUtils.getDayOfWeekString(getDayOfWeek(), DateUtils.LENGTH_LONG);
	}
}